// actions.js
export const FETCH_JOB_LIST = 'FETCH_JOB_LIST'
export const FETCH_JOB_DETAIL = 'FETCH_JOB_DETAIL'
export const UPDATE_JOB_STATUS = 'UPDATE_JOB_STATUS'
export const UPDATE_SUBMIT_STATUS = 'UPDATE_SUBMIT_STATUS'
export const UPDATE_JOB_CATEGORY = 'UPDATE_JOB_CATEGORY'
export const PUT_JOB_CATEGORY = 'PUT_JOB_CATEGORY'
export const PUT_PLAY_LIST = 'PUT_PLAY_LIST'
export const PUT_PLAY_INDEX = 'PUT_PLAY_INDEX'

export const fetchJobList = () => ({
  type: FETCH_JOB_LIST,
});

export const putJobCategory = (payload) => ({
  type: PUT_JOB_CATEGORY,
  payload,
});

export const fetchJobDetail = (lid) => ({
  type: FETCH_JOB_DETAIL,
  payload: lid
});

export const updateJobStatus = (payload) => ({
  type: UPDATE_JOB_STATUS,
  payload
});

export const updateSubmitStatus = (payload) => ({
  type: UPDATE_SUBMIT_STATUS,
  payload
});

export const updateJobCategory = (payload) => ({
  type: UPDATE_JOB_CATEGORY,
  payload
});

export const setPlayList = (payload) => ({
  type: PUT_PLAY_LIST,
  payload
});

export const setPlayIndex = (payload) => ({
  type: PUT_PLAY_INDEX,
  payload
});